package com.lzy.system.organization.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 资源对象
 * </p>
 *
 * @author lcc
 * @since 2022-08-17
 */
@TableName("sys_res")
@Data
@ApiModel(value = "资源对象", description = "")
public class SysRes implements Serializable {
    private static final long serialVersionUID = 1953055044466134076L;

    @ApiModelProperty("资源id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("资源名称")
    private String resName;

    @ApiModelProperty("资源连接")
    private String link;

    @ApiModelProperty("创建时间")
    private Date createDate;

    @ApiModelProperty("父id")
    private Long pid;

    @ApiModelProperty("资源类型1目录2资源")
    private Integer res_type;

}
